<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/4/25
  Time: 20:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="container-fluid">
    <div class="row">
        <nav class="navbar navbar-inverse" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">💻商城</a>
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <c:if test="${user!=null}">
                            <li><a href="#">${user.username}</a></li>
                        </c:if>
                        <li class="active"><a href="/aistar/product/index">首页</a></li>
                        <li><a id="login_a" href="#" data-toggle="modal" data-target="#myModal">登录</a></li>
                        <li><a href="/aistar/login/carts/index"><span class="glyphicon glyphicon-shopping-cart"></span>我的购物车</a></li>
                        <li><a href="/aistar/login/orders/index">我的订单</a></li>
                        <li><a href="/aistar/user/exit">安全退出</a></li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</div>
